//
//  StorageUtil.h
//  BallLight
//
//  Created by jnl on 2017/11/18.
//  Copyright © 2017年 qin. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface StorageUtil : NSObject


#pragma mark - 保存key-value
+(void)saveValueWithKey:(NSString *)key  value:(id) value;

#pragma mark - 根据key获取value
+(id)getValueWithKey:(NSString *)key;



#pragma mark - 保存key-bool
+(void)saveBoolWithKey:(NSString *)key  value:(BOOL) value;

#pragma mark - 根据key获取bool value
+(BOOL)getBoolWithKey:(NSString *)key;



/**
 * 标记已经初始化过
 */
+(BOOL)getFirstInit;
+(void)saveFirstInit:(BOOL) value;


#pragma mark - 获取当前语言的key
+(NSString *)getLanguageKey;

#pragma mark - 保存当前语言的key
+(void)saveLanguageKey:(NSString *)key;

#pragma mark - 获取当前家庭的ID
+(NSString *)getFamilyId;

#pragma mark - 保存当前家庭的ID
+(void)saveFamilyId:(NSString *)familyId;



#pragma mark - 获取当前语音是否开关 YES 是关 NO是开
+(BOOL)getSpeechSwitch;
#pragma mark - 保存当前语音是否开关
+(void)saveSpeechSwitch:(BOOL) status;


#pragma mark - 获取网络状态
+(BOOL)getNetStatus;
#pragma mark - 保存当前网络状态
+(void)saveNetStatus:(BOOL) status;
@end
